package com.dz.risk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dz.risk.pojo.domain.RiskFactorBacktracking;

import java.util.Date;
import java.util.List;

/**
 * 风险因子回溯业务处理层
 *
 * @author Doke
 * @date 2021/7/1 14:49
 */
public interface RiskFactorBacktrackingService extends IService<RiskFactorBacktracking> {

    public static final String ONE = "1";

    public static final String TWO = "2";

    /**
     * 根据日期查询风险因子回溯信息
     *
     * @param riskFactorBacktracking 风险因RiskFactorBacktracking子回溯实体
     * @return 风险因子回溯信息集合
     */
    List<RiskFactorBacktracking> selectByParams(RiskFactorBacktracking riskFactorBacktracking);


    /**
     * 根据日期计算险因子回溯信息
     *
     * @param riskFactorBacktracking 风险因RiskFactorBacktracking子回溯实体
     * @return 风险因子回溯信息集合
     */
    void calculateRiskFactorBacktrackingByVersion(RiskFactorBacktracking riskFactorBacktracking);

    /**
     * 根据版本号删除风险因子回溯信息
     *
     * @param version 版本号
     * @return 删除得条数
     */
    int deleteByVersion(String version);
}
